package com.lemon.smartsafetynew.ui.activity.record;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.ImageView;

import com.lemon.smartsafety.R;
import com.lemon.smartsafetynew.entity.ledger.LedgerBuildingItemVo;
import com.lemon.smartsafetynew.entity.me.MeCompanyVo;
import com.lemon.smartsafetynew.ui.activity.base.BaseFragmentActivity;
import com.lemon.smartsafetynew.ui.fragment.record.SpaceFragment;
import com.lemon.smartsafetynew.util.constants.KeyConstants;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 受限空间
 * Created by JiangAn on 2018/5/23.
 */

public class RecordSpaceActivity extends BaseFragmentActivity {

    private static MeCompanyVo companyVo;
    private static LedgerBuildingItemVo ledgerBuildingItemVo;

    @Override
    protected void getBundleArgs() {
        super.getBundleArgs();

        Bundle bundle = getIntent().getExtras();
        if (bundle != null) {
            if (bundle.containsKey(KeyConstants.KEY_COMPANY_VO)) {
                companyVo = (MeCompanyVo) bundle.getSerializable(KeyConstants.KEY_COMPANY_VO);
            }
        }
    }

    @Override
    protected void initTitle() {
        this.setBarTitle(getString(R.string.record_space));
    }

    @Override
    public Fragment getFragment() {
        return SpaceFragment.newInstance(companyVo);
    }

}

